package com.zy.experience_system.repository;


import com.zy.experience_system.entity.TestInformation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface TestInformationRepository extends JpaRepository<TestInformation,Integer> {
    List<TestInformation> findAllByTeachId(String teachId);
    @Transactional
    void deleteByTestId(Integer testId);
}
